﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SyndicateDAO.DatabaseObject;

namespace BigLotterySyndicate.Classes
{
    public class BaseUserControl : System.Web.UI.UserControl
    {
        public BigLotterySyndicate.Classes.BasePage BasePage
        {
            get
            {
                return this.Page as BigLotterySyndicate.Classes.BasePage;
            }
        }

        public BigLotterySyndicate.Classes.BasePublicPage BasePublicPage
        {
            get
            {
                return this.Page as BigLotterySyndicate.Classes.BasePublicPage;
            }
        }

        public BigLotterySyndicate.Classes.BasePlayerPage BasePlayerPage
        {
            get
            {
                return this.Page as BigLotterySyndicate.Classes.BasePlayerPage;
            }
        }

        public void InsertEventLogEntry(string desc)
        {
            this.BasePage.InsertEventLogEntry(desc);
        }

        public void InsertEventLogEntry(string desc, string type = eventLog.eventType.CHANGE)
        {

            this.BasePage.InsertEventLogEntry(desc,type);
        }
    }
}